<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript" src="js/require.js"></script>
    <script type="text/javascript">
        require.config({
            paths : {
                "jquery" : ["http://libs.baidu.com/jquery/2.0.3/jquery"],
                "a" : "js/a"
            }
        })
        require(["jquery","a"],function($){
            $(function(){
                console.log("load finished");
            })
        })
    </script>
</head>
<body>
<span>body</span>
<span>body</span>
<span>body</span>
</body>
</html>